<?php


namespace app\admin\controller\base;


use app\admin\service\base\SpecialService;
use app\BaseController;
use think\response\Json;

/**
 * 专业控制器
 * Class Special
 * @package app\admin\controller\base
 */
class Special extends BaseController
{
    /**
     * 列表
     * @return Json
     */
    public function index(SpecialService $specialService):Json
    {
        $params = request()->param();
        return $specialService->lists($params);
    }

    /**
     * 列表
     * @return Json
     */
    public function index2(SpecialService $specialService):Json
    {
        $params = request()->param();
        return $specialService->index($params);
    }

    /**
     * 详情
     * @param SpecialService $specialService
     * @return Json
     */
    public function read(SpecialService $specialService):Json
    {
        $params = request()->param();
        return $specialService->read($params);
    }

    /**
     * 创建班级
     * @return Json
     */
    public function save(SpecialService $specialService):Json
    {
        $params = request()->param();
        return $specialService->save($params);
    }

    /**
     * 更新班级信息
     * @return Json
     */
    public function update(SpecialService $specialService):Json
    {
        $params = request()->param();
        return $specialService->update($params);
    }


    /**
     * 删除班级信息
     * @return Json
     */
    public function delete(SpecialService $specialService):Json
    {
        $params = request()->param();
        return $specialService->delete($params);
    }
}